Full source code website bán hàng thương mại điện tử gần giống shopee
468.921 lượt xem;
1 <?
2 echo $_SESSION["session_message"];
3 $_SESSION["session_message"] = "";
4 $MAXPAGE=50;
5 ?>
6 <table height="28" cellSpacing="0" cellPadding="0" width="100%" border="0">
7 <tr align=center>
8 <td class="title" width="100%">Danh sách sản phẩm
9 </tr>
10 </table>
11 <?
12 switch ($_GET['action'])
13 {
14 case 'del' :
15 $id = $_GET['id'];
16 $pro=GetProductInfo($id);
17 if ($pro)
18 {
19 $sql = "delete from products where id='".$id."'";
20 $result = mysql_query($sql,$con);
21 if ($result)
22 {
23 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
24 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
25
26 echo "<p align=center class='err'>Đã xóa thành công</p>";
27 }
28 else echo "<p align=center class='err'>Không thể xóa dữ liệu</p>";
29 }
30 break;
31 }
32 ?>
33
34 <?
35 if (isset($_POST['ButDel'])) {
36 $cnt=0;
37 foreach ($_POST['chk'] as $id)
38 {
39 $pro=GetProductInfo($id);
40 if ($pro)
41 {
42 @$result = mysql_query("delete from products where id='".$id."'",$con);
43 if ($result) {
44 $cnt++;
45 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
46 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
47
48 }
49 }
50 }
51 echo "<p align=center class='err'>Đã xóa ".$cnt." phần tử</p>";
52 }
53 if (isset($_POST['ButGood'])) {
54 $cnt=0;
55 foreach ($_POST['chk'] as $id)
56 {
57 $pro=GetProductInfo($id);
58 if ($pro)
59 {
60 if (CountRecord("pro_good","products_id=".$pro['products_id'])<=0)
61 {
62 $result = mysql_query("insert into pro_good (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
63 if ($result) {
64 $cnt++;
65 }
66 }
67 }
68 }
69 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
70 }
71 if (isset($_POST['ButNew'])) {
72 $cnt=0;
73 foreach ($_POST['chk'] as $id)
74 {
75 $pro=GetProductInfo($id);
76 if ($pro)
77 {
78 if (CountRecord("pro_new","products_id=".$pro['products_id'])<=0)
79 {
80 $result = mysql_query("insert into pro_new (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
81 if ($result) {
82 $cnt++;
83 }
84 }
85 }
86 }
87 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
88 }
89 if (isset($_POST['ButSaleoff'])) {
90 $cnt=0;
91 foreach ($_POST['chk'] as $id)
92 {
93 $pro=GetProductInfo($id);
94 if ($pro)
95 {
96 if (CountRecord("pro_saleoff","products_id=".$pro['products_id'])<=0)
97 {
98 $result = mysql_query("insert into pro_saleoff (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
99 if ($result) {
100 $cnt++;
101 }
102 }
103 }
104 }
105 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
106 }
107
108 if (isset($_POST['trogia'])) {
109 $cnt=0;
110 foreach ($_POST['chk'] as $id)
111 {
112 $pro=GetProductInfo($id);
113 if ($pro)
114 {
115 @$result = mysql_query("update products set trogia=1 where id='".$id."'",$con);
116 if ($result) {
117 $cnt++;
118
119 }
120 }
121 }
122 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm trợ giá</p>";
123 }
124
125 if (isset($_POST['huytrogia'])) {
126 $cnt=0;
127 foreach ($_POST['chk'] as $id)
128 {
129 $pro=GetProductInfo($id);
130 if ($pro)
131 {
132 @$result = mysql_query("update products set trogia=0 where id='".$id."'",$con);
133 if ($result) {
134 $cnt++;
135
136 }
137 }
138 }
139 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm trợ giá</p>";
140 }
141
142
143 if (isset($_POST['sale'])) {
144 $cnt=0;
145 foreach ($_POST['chk'] as $id)
146 {
147 $pro=GetProductInfo($id);
148 if ($pro)
149 {
150 @$result = mysql_query("update products set sale=1 where id='".$id."'",$con);
151 if ($result) {
152 $cnt++;
153
154 }
155 }
156 }
157 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm Sale</p>";
158 }
159
160 if (isset($_POST['huysale'])) {
161 $cnt=0;
162 foreach ($_POST['chk'] as $id)
163 {
164 $pro=GetProductInfo($id);
165 if ($pro)
166 {
167 @$result = mysql_query("update products set sale=0 where id='".$id."'",$con);
168 if ($result) {
169 $cnt++;
170
171 }
172 }
173 }
174 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm Sale</p>";
175 }
176 if (isset($_POST['noibat'])) {
177 $cnt=0;
178 foreach ($_POST['chk'] as $id)
179 {
180 $pro=GetProductInfo($id);
181 if ($pro)
182 {
183 @$result = mysql_query("update products set noibat=1 where id='".$id."'",$con);
184 if ($result) {
185 $cnt++;
186
187 }
188 }
189 }
190 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm nổi bật</p>";
191 }
192
193 if (isset($_POST['huynoibat'])) {
194 $cnt=0;
195 foreach ($_POST['chk'] as $id)
196 {
197 $pro=GetProductInfo($id);
198 if ($pro)
199 {
200 @$result = mysql_query("update products set noibat=0 where id='".$id."'",$con);
201 if ($result) {
202 $cnt++;
203
204 }
205 }
206 }
207 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm Nổi bật</p>";
208 }
209
210 ?>
211
212 <?
213 $page = $_GET["page"];
214 $p=0;
215 if ($page!='') $p=$page;
216 $where="1=1";
217 //if ($_REQUEST['status']!='') $where="products_status=".$_REQUEST['status']." ";
218 if ($_REQUEST['cat']!='') $where="cat=".$_REQUEST['cat'];
219 ?>
220 <?
221 function taotrang($total,$link,$nitem,$itemcurrent,$step=10)
222 { global $con;
223 $ret="";
224
225 $param="";
226 $pages=count_page($total,$nitem);
227 if ($itemcurrent>0) $ret.='<a title="Đầu tiên" href="'.$link.'0" class="lslink">[<]</a> ';
228 if ($itemcurrent>1) $ret.='<a title="Về trước" href="'.$link.($itemcurrent-1).'" class="lslink">[<<]</a> ';
229 $from=($itemcurrent-$step>0?$itemcurrent-$step:0);
230 $to=($itemcurrent+$step<$pages?$itemcurrent+$step:$pages);
231 for ($i=$from;$i<$to;$i++)
232 {
233 if ($i!=$itemcurrent) $ret.='<a href="'.$link.$i.'" class="lslink">'.($i+1).'</a> ';
234 else $ret.='<b>'.($i+1).'</b> ';
235 }
236 if (($itemcurrent<$pages-2) && ($pages>1)) $ret.='<a title="Tiếp theo" href="'.$link.($itemcurrent+1).'">[>>]</a> ';
237 if ($itemcurrent<$pages-1) $ret.='<a title="Cuối cùng" href="'.$link.($pages-1).'">[>]</a>';
238 return $ret;
239 }
240
241 $pageindex=taotrang(CountRecord("products",$where),"./?act=product&cat=".$_REQUEST['cat']."&page=",$MAXPAGE,$page);
242 ?>
243
244 <table cellspacing="0" cellpadding="0" width="100%">
245 <? if ($_REQUEST['code']==1) echo '<tr><td colspan="2" align="center" class="err">Đã cập nhật thành công</td></tr>'; ?>
246 <tr>
247 <td style=" padding-bottom: 7px; padding-top: 7px; " class="smallfont">Trang : <? echo $pageindex; ?></td>
248
249 </tr>
250 </table>
251 <table cellspacing="0" cellpadding="0">
252 <tr>
253 <td class="smallfont">Tìm kiếm: </td>
254 <td class="smallfont">
255 <!-- begin tim kiem-->
256 <form name="form_select" method="GET" action="./?act=product">
257 <table id="timkiem_home" border="0" id="table21" cellspacing="0" cellpadding="0">
258 <tr>
259 <td style="padding-left:4px;">
260 <select size="1" name="cat_id">
261 <?
262 $ms=GetListCat(17);
263 echo '<option value="">[Tất cả]</option>';
264 foreach ($ms as $m)
265 if ($m[0]!=$_REQUEST['cat'])
266 echo '<option value="'.$m[0].'">'.$m[1].'</option>';
267 else
268 echo '<option selected value="'.$m[0].'">'.$m[1].'</option>';
269 ?>
270 </select>
271 </td>
272 <td style="padding-left:0px">
273 <input name="keywords" type="text" id="input_timkiem" value="">
274 </td>
275 <td>
276 <input type="hidden" name="act" value="search">
277 <input type="hidden" name="index" value="search">
278 <input id="button_search" type="submit" name="search" value="Tìm">
279 </td>
280 </tr>
281 </table>
282 </form>
283 <!-- end tim kiem -->
284 </td>
285 </tr>
286 </table>
287 <form method="POST" name="frmList" action="index.php">
288 <input type=hidden name="page" value="<? echo $page; ?>">
289 <table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#C9C9C9" width="100%" id="AutoNumber1">
290 <tr >
291 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
292 <td align=center nowrap class="title"><input type="checkbox" name="chkall" onclick="chkallClick(this);"></td>
293 <td align="center" nowrap class="title"><b>Hình</b></td>
294 <td align="center" nowrap class="title"><b>Sửa</b></td>
295
296
297 <td align="center" nowrap class="title"><b>ID </b></td>
298 <td align="center" nowrap class="title"><b>Mã </b></td>
299 <td align="center" nowrap class="title"><b>Tên </b></td>
300
301 <td align="center" nowrap class="title"><b>Giá bán </b></td>
302 <td align="center" nowrap class="title"><b>Giá cũ </b></td>
303 <td align="center" nowrap class="title"><b>BH </b></td>
304 <td align="center" nowrap class="title"><b>Event </b></td>
305
306 <td align="center" nowrap class="title"><b>Up đề cử </b></td>
307 <td align="center" nowrap class="title"><b>Up TOP</b></td>
308 <td align="center" nowrap class="title"><b>Shop</b></td>
309
310
311
312 <td align="center" nowrap class="title"><b>Danh mục hệ thống</b></td>
313 <td align="center" nowrap class="title"><b>TT</b></td>
314 <td align="center" nowrap class="title"><b>Trạng thái</b></td>
315 <td align="center" nowrap class="title"><b>Ngày đăng</b></td>
316
317 </tr>
318
319 <?php
320 $sql="select * from products where $where order by id DESC limit ".($p*$MAXPAGE).",".$MAXPAGE;
321 $result=mysql_query($sql,$con);
322 $i=0;
323 while(($row=mysql_fetch_array($result)))
324 {
325 $i++;
326 if ($i%2) $color="#d5d5d5"; else $color="#e5e5e5";
327
328 $cat_system=GetCatInfo($row['cat']);
329
330 $sql_reg1=mysql_query("SELECT * FROM user_shop where user='".$row['user']."' ");
331 $row_reg1=mysql_fetch_assoc($sql_reg1);
332 $sql_city=mysql_query("SELECT * FROM city where id='".$row['city']."' ");
333 $row_city=mysql_fetch_assoc($sql_city);
334 ?>
335
336 <tr bgcolor="<? echo $color;?>" class="table_a">
337 <td align="center" class="smallfont">
338 <input type="checkbox" name="chk[]" value="<? echo $row['id']; ?>"></td>
339 <td class="smallfont"><a id="xemnhanhsp" href="/index1.php?home=products&views=<? echo $row['id']; ?>"> <image src="<? echo $row['image']; ?>" width="25" height="25" > </a></td>
340 <td align="center" class="smallfont">
341 <a href="./?act=product_m&cat=<? echo $_REQUEST['cat']; ?>&status=<? echo $_REQUEST['status']; ?>&id=<? echo $row['id']; ?>&page=<? echo $page?>">Sửa</a></td>
342
343
344
345 <td align="left" align="left" class="smallfont"><? echo $row['id']; ?> </td>
346 <td class="smallfont"><? echo $row['code']; ?> </td>
347 <td class="smallfont">
348 <a id="xemnhanhsp" href="/index1.php?home=products&views=<? echo $row['id']; ?>" ><? echo $row['name']; ?></a> <?php if($row['mausac_nau']=='' & $row['mausac_vang']=='' & $row['mausac_trang']==''& $row['mausac_den']==''& $row['mausac_hong']==''& $row['mausac_xanhla']==''& $row['mausac_xanhnuocbien']==''& $row['mausac_xanhngoc']==''& $row['mausac_xanhden']==''& $row['mausac_xam']==''& $row['mausac_tim']==''& $row['mausac_do']==''& $row['mausac_cam']==''& $row['mausac_kem']==''& $row['mausac_xanhduong']==''& $row['mausac_soc']==''& $row['mausac_xanhladam']==''& $row['mausac_hoatiet']==''& $row['mausac_bac']==''& $row['mausac_hongphan']=='')
349 {?>
350 <?}
351 else{?>
352
353 <?php if($row['mausac_nau']=='' )
354 {?>
355 <?}
356 else{?>
357 <span style="background-color: #<? echo $row['mausac_nau']; ?>; outline: 1px solid #ccc;" title="Nâu"><a href="java:" > </a></span>
358
359 <?}?>
360 <?php if($row['mausac_vang']=='' )
361 {?>
362 <?}
363 else{?>
364 <span style="background-color: #<? echo $row['mausac_vang']; ?>; outline: 1px solid #ccc;" title="Vàng"><a href="java:" > </a></span>
365
366 <?}?>
367 <?php if($row['mausac_trang']=='' )
368 {?>
369 <?}
370 else{?>
371 <span style="background-color: #<? echo $row['mausac_trang']; ?>; outline: 1px solid #ccc;" title="Trắng"><a href="java:" > </a></span>
372
373 <?}?>
374 <?php if($row['mausac_den']=='' )
375 {?>
376 <?}
377 else{?>
378 <span style="background-color: #<? echo $row['mausac_den']; ?>; outline: 1px solid #ccc;" title="Đen"><a href="java:" > </a></span>
379
380 <?}?>
381 <?php if($row['mausac_hong']=='' )
382 {?>
383 <?}
384 else{?>
385 <span style="background-color: #<? echo $row['mausac_hong']; ?>; outline: 1px solid #ccc;" title="Hồng"><a href="java:" > </a></span>
386
387 <?}?>
388 <?php if($row['mausac_xanhla']=='' )
389 {?>
390 <?}
391 else{?>
392 <span style="background-color: #<? echo $row['mausac_xanhla']; ?>; outline: 1px solid #ccc;" title="Xanh lá"><a href="java:" > </a></span>
393
394 <?}?>
395 <?php if($row['mausac_xanhnuocbien']=='' )
396 {?>
397 <?}
398 else{?>
399 <span style="background-color: #<? echo $row['mausac_xanhnuocbien']; ?>; outline: 1px solid #ccc;" title="Xanh nước biển"><a href="java:" > </a></span>
400
401 <?}?>
402 <?php if($row['mausac_xanhngoc']=='' )
403 {?>
404 <?}
405 else{?>
406
407 <span style="background-color: #<? echo $row['mausac_xanhngoc']; ?>; outline: 1px solid #ccc;" title="Xanh ngọc"><a href="java:" > </a></span>
408
409 <?}?>
410 <?php if($row['mausac_xanhden']=='' )
411 {?>
412 <?}
413 else{?>
414
415 <span style="background-color: #<? echo $row['mausac_xanhden']; ?>; outline: 1px solid #ccc;" title="Xanh đen"><a href="java:" > </a></span>
416
417 <?}?>
418 <?php if($row['mausac_xam']=='' )
419 {?>
420 <?}
421 else{?>
422
423 <span style="background-color: #<? echo $row['mausac_xam']; ?>; outline: 1px solid #ccc;" title="Xám"><a href="java:" > </a></span>
424
425 <?}?>
426 <?php if($row['mausac_tim']=='' )
427 {?>
428 <?}
429 else{?>
430 <span style="background-color: #<? echo $row['mausac_tim']; ?>; outline: 1px solid #ccc;" title="Tím"><a href="java:" > </a></span>
431
432 <?}?>
433 <?php if($row['mausac_do']=='' )
434 {?>
435 <?}
436 else{?>
437 <span style="background-color: #<? echo $row['mausac_do']; ?>;outline: 1px solid #ccc;" title="Đỏ"><a href="java:" > </a></span>
438
439 <?}?>
440 <?php if($row['mausac_cam']=='' )
441 {?>
442 <?}
443 else{?>
444 <span style="background-color: #<? echo $row['mausac_cam']; ?>;outline: 1px solid #ccc;" title="Cam"><a href="java:" > </a></span>
445
446 <?}?>
447 <?php if($row['mausac_kem']=='' )
448 {?>
449 <?}
450 else{?>
451 <span style="background-color: #<? echo $row['mausac_kem']; ?>;outline: 1px solid #ccc;" title="Kem"><a href="java:" > </a></span>
452
453 <?}?>
454
455 <?php if($row['mausac_xanhduong']=='' )
456 {?>
457 <?}
458 else{?>
459 <span style="background-color: #<? echo $row['mausac_xanhduong']; ?>;outline: 1px solid #ccc;" title="Xanh dương"><a href="java:" > </a></span>
460
461 <?}?>
462 <?php if($row['mausac_soc']=='' )
463 {?>
464 <?}
465 else{?>
466 <span style="background: url(/images/<? echo $row['mausac_soc']; ?>) center center no-repeat; ?>;outline: 1px solid #ccc;" title="Sọc"><a href="java:" > </a></span>
467
468 <?}?>
469 <?php if($row['mausac_xanhreu']=='' )
470 {?>
471 <?}
472 else{?>
473 <span style="background-color: #<? echo $row['mausac_xanhreu']; ?>;outline: 1px solid #ccc;" title="Xanh rêu"><a href="java:" > </a></span>
474
475 <?}?>
476 <?php if($row['mausac_xanhladam']=='' )
477 {?>
478 <?}
479 else{?>
480 <span style="background-color: #<? echo $row['mausac_xanhladam']; ?>;outline: 1px solid #ccc;" title="Xanh lá đậm"><a href="java:" > </a></span>
481
482 <?}?>
483 <?php if($row['mausac_hoatiet']=='' )
484 {?>
485 <?}
486 else{?>
487 <span style="background: url(/images/<? echo $row['mausac_hoatiet']; ?>) center center no-repeat;outline: 1px solid #ccc;" title="Họa tiết"><a href="java:" > </a></span>
488
489 <?}?>
490 <?php if($row['mausac_bac']=='' )
491 {?>
492 <?}
493 else{?>
494 <span style="background-color: #<? echo $row['mausac_bac']; ?>;outline: 1px solid #ccc;" title="Bạc"><a href="java:" > </a></span>
495
496 <?}?>
497 <?php if($row['mausac_hongphan']=='' )
498 {?>
499 <?}
500 else{?>
501 <span style="background-color: #<? echo $row['mausac_hongphan']; ?>;outline: 1px solid #ccc;" title="Hồng phấn"><a href="java:" > </a></span>
502
503 <?}?>
504 <?php if($row['kichthuoc_freesize']=='' & $row['kichthuoc_1']=='' & $row['kichthuoc_2']=='' & $row['kichthuoc_3']=='' & $row['kichthuoc_4']=='' & $row['kichthuoc_5']=='' & $row['kichthuoc_6']=='' & $row['kichthuoc_7']=='' & $row['kichthuoc_8']=='' & $row['kichthuoc_9']=='' & $row['kichthuoc_10']=='' & $row['kichthuoc_11']=='' & $row['kichthuoc_12']=='' & $row['kichthuoc_S']=='' & $row['kichthuoc_M']=='' & $row['kichthuoc_L']=='' & $row['kichthuoc_XL']=='' & $row['kichthuoc_XXL']=='' & $row['kichthuoc_XS']=='' & $row['kichthuoc_XXS']=='' & $row['kichthuoc_2XL']=='' & $row['kichthuoc_3XL']=='' & $row['kichthuoc_4XL']=='' & $row['kichthuoc_5XL']=='' & $row['kichthuoc_6XL']=='' & $row['kichthuoc_25']=='' & $row['kichthuoc_26']=='' & $row['kichthuoc_27']=='' & $row['kichthuoc_28']=='' & $row['kichthuoc_29']=='' & $row['kichthuoc_30']=='' & $row['kichthuoc_31']=='' & $row['kichthuoc_32']=='' & $row['kichthuoc_33']=='' & $row['kichthuoc_34']=='' & $row['kichthuoc_35']=='' & $row['kichthuoc_36']=='' & $row['kichthuoc_37']=='' & $row['kichthuoc_38']=='' & $row['kichthuoc_39']=='' & $row['kichthuoc_40']=='' & $row['kichthuoc_41']=='' & $row['kichthuoc_42']=='' & $row['kichthuoc_43']=='' & $row['kichthuoc_44']=='' & $row['kichthuoc_45']=='' & $row['kichthuoc_46']=='' & $row['kichthuoc_47']=='')
505 {?>
506 <?}
507 else{?>
508
509
510
511
512 <?php if($row['kichthuoc_freesize']=='' )
513 {?>
514 <?}
515 else{?>
516 <span style="/* outline: 1px solid #ccc; */width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;/* display: block; *//* float: left; */cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="FreeSize"><? echo $row['kichthuoc_freesize']; ?></span>
517
518 <?}?>
519
520 <?php if($row['kichthuoc_1']=='' )
521 {?>
522 <?}
523 else{?>
524 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-1"><? echo $row['kichthuoc_1']; ?></span>
525 <?}?>
526
527 <?php if($row['kichthuoc_2']=='' )
528 {?>
529 <?}
530 else{?>
531 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-2"><? echo $row['kichthuoc_2']; ?></span>
532 <?}?>
533 <?php if($row['kichthuoc_3']=='' )
534 {?>
535 <?}
536 else{?>
537 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-3"><? echo $row['kichthuoc_3']; ?></span>
538 <?}?>
539 <?php if($row['kichthuoc_4']=='' )
540 {?>
541 <?}
542 else{?>
543 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-4"><? echo $row['kichthuoc_4']; ?></span>
544 <?}?>
545 <?php if($row['kichthuoc_5']=='' )
546 {?>
547 <?}
548 else{?>
549 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-5"><? echo $row['kichthuoc_5']; ?></span>
550 <?}?>
551 <?php if($row['kichthuoc_6']=='' )
552 {?>
553 <?}
554 else{?>
555 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding-left: 4px;padding-right: 4px;" title="Size-6"><? echo $row['kichthuoc_6']; ?></span>
556 <?}?>
557 <?php if($row['kichthuoc_7']=='' )
558 {?>
559 <?}
560 else{?>
561 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-7"><? echo $row['kichthuoc_7']; ?></span>
562 <?}?>
563 <?php if($row['kichthuoc_8']=='' )
564 {?>
565 <?}
566 else{?>
567 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-8"><? echo $row['kichthuoc_8']; ?></span>
568 <?}?>
569 <?php if($row['kichthuoc_9']=='' )
570 {?>
571 <?}
572 else{?>
573 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-9"><? echo $row['kichthuoc_9']; ?></span>
574 <?}?>
575 <?php if($row['kichthuoc_10']=='' )
576 {?>
577 <?}
578 else{?>
579 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-10"><? echo $row['kichthuoc_10']; ?></span>
580 <?}?>
581 <?php if($row['kichthuoc_11']=='' )
582 {?>
583 <?}
584 else{?>
585 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-11"><? echo $row['kichthuoc_11']; ?></span>
586 <?}?>
587 <?php if($row['kichthuoc_12']=='' )
588 {?>
589 <?}
590 else{?>
591 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-12"><? echo $row['kichthuoc_12']; ?></span>
592 <?}?>
593 <?php if($row['kichthuoc_S']=='' )
594 {?>
595 <?}
596 else{?>
597 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-S"><? echo $row['kichthuoc_S']; ?></span>
598 <?}?>
599 <?php if($row['kichthuoc_M']=='' )
600 {?>
601 <?}
602 else{?>
603 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-M"><? echo $row['kichthuoc_M']; ?></span>
604 <?}?>
605 <?php if($row['kichthuoc_L']=='' )
606 {?>
607 <?}
608 else{?>
609 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-L"><? echo $row['kichthuoc_L']; ?></span>
610 <?}?>
611 <?php if($row['kichthuoc_XL']=='' )
612 {?>
613 <?}
614 else{?>
615 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XL"><? echo $row['kichthuoc_XL']; ?></span>
616 <?}?>
617 <?php if($row['kichthuoc_XXL']=='' )
618 {?>
619 <?}
620 else{?>
621 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XXL"><? echo $row['kichthuoc_XXL']; ?></span>
622 <?}?>
623 <?php if($row['kichthuoc_XS']=='' )
624 {?>
625 <?}
626 else{?>
627 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XS"><? echo $row['kichthuoc_XS']; ?></span>
628 <?}?>
629 <?php if($row['kichthuoc_XXS']=='' )
630 {?>
631 <?}
632 else{?>
633 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XXS"><? echo $row['kichthuoc_XXS']; ?></span>
634 <?}?>
635 <?php if($row['kichthuoc_2XL']=='' )
636 {?>
637 <?}
638 else{?>
639 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-2XL"><? echo $row['kichthuoc_2XL']; ?></span>
640 <?}?>
641 <?php if($row['kichthuoc_3XL']=='' )
642 {?>
643 <?}
644 else{?>
645 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-3XL"><? echo $row['kichthuoc_3XL']; ?></span>
646 <?}?>
647 <?php if($row['kichthuoc_4XL']=='' )
648 {?>
649 <?}
650 else{?>
651 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-4XL"><? echo $row['kichthuoc_4XL']; ?></span>
652 <?}?>
653 <?php if($row['kichthuoc_5XL']=='' )
654 {?>
655 <?}
656 else{?>
657 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-5XL"><? echo $row['kichthuoc_5XL']; ?></span>
658 <?}?>
659 <?php if($row['kichthuoc_6XL']=='' )
660 {?>
661 <?}
662 else{?>
663 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-6XL"><? echo $row['kichthuoc_6XL']; ?></span>
664 <?}?>
665 <?php if($row['kichthuoc_25']=='' )
666 {?>
667 <?}
668 else{?>
669 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-25"><? echo $row['kichthuoc_25']; ?></span>
670 <?}?>
671 <?php if($row['kichthuoc_26']=='' )
672 {?>
673 <?}
674 else{?>
675 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-26"><? echo $row['kichthuoc_26']; ?></span>
676 <?}?>
677 <?php if($row['kichthuoc_27']=='' )
678 {?>
679 <?}
680 else{?>
681 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-27"><? echo $row['kichthuoc_27']; ?></span>
682 <?}?>
683 <?php if($row['kichthuoc_28']=='' )
684 {?>
685 <?}
686 else{?>
687 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-28"><? echo $row['kichthuoc_28']; ?></span>
688 <?}?>
689 <?php if($row['kichthuoc_29']=='' )
690 {?>
691 <?}
692 else{?>
693 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-29"><? echo $row['kichthuoc_29']; ?></span>
694 <?}?>
695 <?php if($row['kichthuoc_30']=='' )
696 {?>
697 <?}
698 else{?>
699 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-30"><? echo $row['kichthuoc_30']; ?></span>
700 <?}?>
701 <?php if($row['kichthuoc_31']=='' )
702 {?>
703 <?}
704 else{?>
705 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-31"><? echo $row['kichthuoc_31']; ?></span>
706 <?}?>
707 <?php if($row['kichthuoc_32']=='' )
708 {?>
709 <?}
710 else{?>
711 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-32"><? echo $row['kichthuoc_32']; ?></span>
712 <?}?>
713 <?php if($row['kichthuoc_33']=='' )
714 {?>
715 <?}
716 else{?>
717 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-33"><? echo $row['kichthuoc_33']; ?></span>
718 <?}?>
719 <?php if($row['kichthuoc_34']=='' )
720 {?>
721 <?}
722 else{?>
723 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-34"><? echo $row['kichthuoc_34']; ?></span>
724 <?}?>
725 <?php if($row['kichthuoc_35']=='' )
726 {?>
727 <?}
728 else{?>
729 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-35"><? echo $row['kichthuoc_35']; ?></span>
730 <?}?>
731 <?php if($row['kichthuoc_36']=='' )
732 {?>
733 <?}
734 else{?>
735 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-36"><? echo $row['kichthuoc_36']; ?></span>
736 <?}?>
737 <?php if($row['kichthuoc_37']=='' )
738 {?>
739 <?}
740 else{?>
741 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-37"><? echo $row['kichthuoc_37']; ?></span>
742 <?}?>
743 <?php if($row['kichthuoc_38']=='' )
744 {?>
745 <?}
746 else{?>
747 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-38"><? echo $row['kichthuoc_38']; ?></span>
748 <?}?>
749 <?php if($row['kichthuoc_39']=='' )
750 {?>
751 <?}
752 else{?>
753 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-39"><? echo $row['kichthuoc_39']; ?></span>
754 <?}?>
755 <?php if($row['kichthuoc_40']=='' )
756 {?>
757 <?}
758 else{?>
759 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-40"><? echo $row['kichthuoc_40']; ?></span>
760 <?}?>
761 <?php if($row['kichthuoc_41']=='' )
762 {?>
763 <?}
764 else{?>
765 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-41"><? echo $row['kichthuoc_41']; ?></span>
766 <?}?><?php if($row['kichthuoc_42']=='' )
767 {?>
768 <?}
769 else{?>
770 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-42"><? echo $row['kichthuoc_42']; ?></span>
771 <?}?>
772 <?php if($row['kichthuoc_43']=='' )
773 {?>
774 <?}
775 else{?>
776 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-43"><? echo $row['kichthuoc_43']; ?></span>
777 <?}?>
778 <?php if($row['kichthuoc_44']=='' )
779 {?>
780 <?}
781 else{?>
782 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-44"><? echo $row['kichthuoc_44']; ?></span>
783 <?}?>
784 <?php if($row['kichthuoc_45']=='' )
785 {?>
786 <?}
787 else{?>
788 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-45"><? echo $row['kichthuoc_45']; ?></span>
789 <?}?>
790 <?php if($row['kichthuoc_46']=='' )
791 {?>
792 <?}
793 else{?>
794 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-46"><? echo $row['kichthuoc_46']; ?></span>
795 <?}?>
796 <?php if($row['kichthuoc_47']=='' )
797 {?>
798 <?}
799 else{?>
800 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-47"><? echo $row['kichthuoc_47']; ?></span>
801 <?}?>
802
803
804 <?}?>
805
806
807 <?}?></td>
808 <td class="smallfont"><? echo number_format($row['price_special']); ?> </td>
809 <td class="smallfont"><? echo number_format($row['price']); ?> </td>
810 <td class="smallfont"><? echo number_format($row['baohanh']); ?> </td>
811 <td class="smallfont">
812 <a onmouseover='showtip("<div><table style=\"padding:10px;background-color:black;color:white\"><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Nổi bật: </td><td style=\"width:400px\"><?php if($row['noibat'] == '1'){?> <img src=\"/images/icon-check.png\" /><?}else{?><img src=\"/images/icon-uncheck.png\" /><?}?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Top xu hướng: </td><td style=\"width:400px\"><?php if($row['topxuhuong'] > '0'){?> <img src=\"/images/icon-check.png\" /><?}else{?><img src=\"/images/icon-uncheck.png\" /><?}?></td></tr><tr><td style=\"padding-right:10px;width:120px;height:20px;text-align:right\">Top khuyến mãi: </td><td style=\"width:400px\"><?php if($row['topkhuyenmai'] > '0'){?> <img src=\"/images/icon-check.png\" /><?}else{?><img src=\"/images/icon-uncheck.png\" /><?}?></td></tr></table></div>");' onmouseout="hidetip();" >
813 <font color="red">Xem</b></font>
814 </a>
815
816 </td>
817
818 <td class="smallfont"><? echo number_format($row['upxuhuong']); ?> </td>
819 <td class="smallfont"><? echo number_format($row['uptop']); ?> </td>
820
821 <td class="smallfont">
822
823 <a onmouseover='showtip("<div><table style=\"padding:10px;background-color:black;color:white\"><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">ID Shop: </td><td style=\"width:400px\"><? echo $row_reg1['id'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Tên Shop: </td><td style=\"width:400px\"><? echo $row_reg1['company'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Loại Shop: </td><td style=\"width:400px\"><?php if($row_reg1['level_shop'] == '0'){?><b style=\"color:red\">Shop Lửa Đỏ </b><?}else{?>Shop Thường<?}?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Tỉnh/TP: </td><td style=\"width:400px\"><? echo $row_city['name'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Tình trạng: </td><td style=\"width:400px\"><?php if($row_reg1['active'] == '0'){?><b style=\"color:blue\">Kích hoạt </b><?}else{?>Bị Khóa<?}?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Email: </td><td><? echo $row_reg1['email'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Điện thoại: </td><td><? echo $row_reg1['phone'];?></td></tr><tr><td style=\"padding-right:10px;width:110px;height:20px;text-align:right\">Ngày đăng ký: </td><td><? echo $row_reg1['re_time'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Địa chỉ: </td><td><? echo $row['address'];?></td></tr></table></div>");' onmouseout="hidetip();" href="../<? echo $row['user']; ?>" target="_blank">
824 <font color="blue"><? echo $row['user']; ?></b></font>
825 </a>
826
827
828
829 </td>
830
831 <td class="smallfont"><? echo $cat_system['name']; ?> </td>
832 <td class="smallfont">
833
834
835 <?php if($row['tinhtrang'] == '1'){?>
836 Còn
837 <?}else{?>
838 Hết
839 <?}?>
840
841 </td>
842 <td class="smallfont">
843
844
845 <?php if($row['status'] == '0'){?>
846 Đã duyệt
847 <?}else{?>
848 Hủy
849 <?}?>
850
851 </td>
852 <td class="smallfont"><? echo $row['date']; ?> </td>
853
854 </tr>
855 <?
856 }
857 ?>
858 </table>
859
860
861
862 <input type="hidden" name="act" value="product"><table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
863 <tr>
864 <td>
865 <input type="submit" value="Xóa Chọn" name="ButDel" onclick="return confirm('Bạn có chắc chắn muốn xoá ?');" class="button"></td>
866 <td align="right">
867
868 </td>
869 <td align="right">
870
871 </td>
872
873
874 </tr>
875 </table>
876 </form>
877 <script language="JavaScript">
878 function chkallClick(o) {
879 var form = document.frmList;
880 for (var i = 0; i < form.elements.length; i++) {
881 if (form.elements[i].type == "checkbox" && form.elements[i].name!="chkall") {
882 form.elements[i].checked = document.frmList.chkall.checked;
883 }
884 }
885 }
886 </script>
2 echo $_SESSION["session_message"];
3 $_SESSION["session_message"] = "";
4 $MAXPAGE=50;
5 ?>
6 <table height="28" cellSpacing="0" cellPadding="0" width="100%" border="0">
7 <tr align=center>
8 <td class="title" width="100%">Danh sách sản phẩm
9 </tr>
10 </table>
11 <?
12 switch ($_GET['action'])
13 {
14 case 'del' :
15 $id = $_GET['id'];
16 $pro=GetProductInfo($id);
17 if ($pro)
18 {
19 $sql = "delete from products where id='".$id."'";
20 $result = mysql_query($sql,$con);
21 if ($result)
22 {
23 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
24 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
25
26 echo "<p align=center class='err'>Đã xóa thành công</p>";
27 }
28 else echo "<p align=center class='err'>Không thể xóa dữ liệu</p>";
29 }
30 break;
31 }
32 ?>
33
34 <?
35 if (isset($_POST['ButDel'])) {
36 $cnt=0;
37 foreach ($_POST['chk'] as $id)
38 {
39 $pro=GetProductInfo($id);
40 if ($pro)
41 {
42 @$result = mysql_query("delete from products where id='".$id."'",$con);
43 if ($result) {
44 $cnt++;
45 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
46 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
47
48 }
49 }
50 }
51 echo "<p align=center class='err'>Đã xóa ".$cnt." phần tử</p>";
52 }
53 if (isset($_POST['ButGood'])) {
54 $cnt=0;
55 foreach ($_POST['chk'] as $id)
56 {
57 $pro=GetProductInfo($id);
58 if ($pro)
59 {
60 if (CountRecord("pro_good","products_id=".$pro['products_id'])<=0)
61 {
62 $result = mysql_query("insert into pro_good (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
63 if ($result) {
64 $cnt++;
65 }
66 }
67 }
68 }
69 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
70 }
71 if (isset($_POST['ButNew'])) {
72 $cnt=0;
73 foreach ($_POST['chk'] as $id)
74 {
75 $pro=GetProductInfo($id);
76 if ($pro)
77 {
78 if (CountRecord("pro_new","products_id=".$pro['products_id'])<=0)
79 {
80 $result = mysql_query("insert into pro_new (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
81 if ($result) {
82 $cnt++;
83 }
84 }
85 }
86 }
87 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
88 }
89 if (isset($_POST['ButSaleoff'])) {
90 $cnt=0;
91 foreach ($_POST['chk'] as $id)
92 {
93 $pro=GetProductInfo($id);
94 if ($pro)
95 {
96 if (CountRecord("pro_saleoff","products_id=".$pro['products_id'])<=0)
97 {
98 $result = mysql_query("insert into pro_saleoff (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
99 if ($result) {
100 $cnt++;
101 }
102 }
103 }
104 }
105 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
106 }
107
108 if (isset($_POST['trogia'])) {
109 $cnt=0;
110 foreach ($_POST['chk'] as $id)
111 {
112 $pro=GetProductInfo($id);
113 if ($pro)
114 {
115 @$result = mysql_query("update products set trogia=1 where id='".$id."'",$con);
116 if ($result) {
117 $cnt++;
118
119 }
120 }
121 }
122 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm trợ giá</p>";
123 }
124
125 if (isset($_POST['huytrogia'])) {
126 $cnt=0;
127 foreach ($_POST['chk'] as $id)
128 {
129 $pro=GetProductInfo($id);
130 if ($pro)
131 {
132 @$result = mysql_query("update products set trogia=0 where id='".$id."'",$con);
133 if ($result) {
134 $cnt++;
135
136 }
137 }
138 }
139 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm trợ giá</p>";
140 }
141
142
143 if (isset($_POST['sale'])) {
144 $cnt=0;
145 foreach ($_POST['chk'] as $id)
146 {
147 $pro=GetProductInfo($id);
148 if ($pro)
149 {
150 @$result = mysql_query("update products set sale=1 where id='".$id."'",$con);
151 if ($result) {
152 $cnt++;
153
154 }
155 }
156 }
157 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm Sale</p>";
158 }
159
160 if (isset($_POST['huysale'])) {
161 $cnt=0;
162 foreach ($_POST['chk'] as $id)
163 {
164 $pro=GetProductInfo($id);
165 if ($pro)
166 {
167 @$result = mysql_query("update products set sale=0 where id='".$id."'",$con);
168 if ($result) {
169 $cnt++;
170
171 }
172 }
173 }
174 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm Sale</p>";
175 }
176 if (isset($_POST['noibat'])) {
177 $cnt=0;
178 foreach ($_POST['chk'] as $id)
179 {
180 $pro=GetProductInfo($id);
181 if ($pro)
182 {
183 @$result = mysql_query("update products set noibat=1 where id='".$id."'",$con);
184 if ($result) {
185 $cnt++;
186
187 }
188 }
189 }
190 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm nổi bật</p>";
191 }
192
193 if (isset($_POST['huynoibat'])) {
194 $cnt=0;
195 foreach ($_POST['chk'] as $id)
196 {
197 $pro=GetProductInfo($id);
198 if ($pro)
199 {
200 @$result = mysql_query("update products set noibat=0 where id='".$id."'",$con);
201 if ($result) {
202 $cnt++;
203
204 }
205 }
206 }
207 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm Nổi bật</p>";
208 }
209
210 ?>
211
212 <?
213 $page = $_GET["page"];
214 $p=0;
215 if ($page!='') $p=$page;
216 $where="1=1";
217 //if ($_REQUEST['status']!='') $where="products_status=".$_REQUEST['status']." ";
218 if ($_REQUEST['cat']!='') $where="cat=".$_REQUEST['cat'];
219 ?>
220 <?
221 function taotrang($total,$link,$nitem,$itemcurrent,$step=10)
222 { global $con;
223 $ret="";
224
225 $param="";
226 $pages=count_page($total,$nitem);
227 if ($itemcurrent>0) $ret.='<a title="Đầu tiên" href="'.$link.'0" class="lslink">[<]</a> ';
228 if ($itemcurrent>1) $ret.='<a title="Về trước" href="'.$link.($itemcurrent-1).'" class="lslink">[<<]</a> ';
229 $from=($itemcurrent-$step>0?$itemcurrent-$step:0);
230 $to=($itemcurrent+$step<$pages?$itemcurrent+$step:$pages);
231 for ($i=$from;$i<$to;$i++)
232 {
233 if ($i!=$itemcurrent) $ret.='<a href="'.$link.$i.'" class="lslink">'.($i+1).'</a> ';
234 else $ret.='<b>'.($i+1).'</b> ';
235 }
236 if (($itemcurrent<$pages-2) && ($pages>1)) $ret.='<a title="Tiếp theo" href="'.$link.($itemcurrent+1).'">[>>]</a> ';
237 if ($itemcurrent<$pages-1) $ret.='<a title="Cuối cùng" href="'.$link.($pages-1).'">[>]</a>';
238 return $ret;
239 }
240
241 $pageindex=taotrang(CountRecord("products",$where),"./?act=product&cat=".$_REQUEST['cat']."&page=",$MAXPAGE,$page);
242 ?>
243
244 <table cellspacing="0" cellpadding="0" width="100%">
245 <? if ($_REQUEST['code']==1) echo '<tr><td colspan="2" align="center" class="err">Đã cập nhật thành công</td></tr>'; ?>
246 <tr>
247 <td style=" padding-bottom: 7px; padding-top: 7px; " class="smallfont">Trang : <? echo $pageindex; ?></td>
248
249 </tr>
250 </table>
251 <table cellspacing="0" cellpadding="0">
252 <tr>
253 <td class="smallfont">Tìm kiếm: </td>
254 <td class="smallfont">
255 <!-- begin tim kiem-->
256 <form name="form_select" method="GET" action="./?act=product">
257 <table id="timkiem_home" border="0" id="table21" cellspacing="0" cellpadding="0">
258 <tr>
259 <td style="padding-left:4px;">
260 <select size="1" name="cat_id">
261 <?
262 $ms=GetListCat(17);
263 echo '<option value="">[Tất cả]</option>';
264 foreach ($ms as $m)
265 if ($m[0]!=$_REQUEST['cat'])
266 echo '<option value="'.$m[0].'">'.$m[1].'</option>';
267 else
268 echo '<option selected value="'.$m[0].'">'.$m[1].'</option>';
269 ?>
270 </select>
271 </td>
272 <td style="padding-left:0px">
273 <input name="keywords" type="text" id="input_timkiem" value="">
274 </td>
275 <td>
276 <input type="hidden" name="act" value="search">
277 <input type="hidden" name="index" value="search">
278 <input id="button_search" type="submit" name="search" value="Tìm">
279 </td>
280 </tr>
281 </table>
282 </form>
283 <!-- end tim kiem -->
284 </td>
285 </tr>
286 </table>
287 <form method="POST" name="frmList" action="index.php">
288 <input type=hidden name="page" value="<? echo $page; ?>">
289 <table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#C9C9C9" width="100%" id="AutoNumber1">
290 <tr >
291 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
292 <td align=center nowrap class="title"><input type="checkbox" name="chkall" onclick="chkallClick(this);"></td>
293 <td align="center" nowrap class="title"><b>Hình</b></td>
294 <td align="center" nowrap class="title"><b>Sửa</b></td>
295
296
297 <td align="center" nowrap class="title"><b>ID </b></td>
298 <td align="center" nowrap class="title"><b>Mã </b></td>
299 <td align="center" nowrap class="title"><b>Tên </b></td>
300
301 <td align="center" nowrap class="title"><b>Giá bán </b></td>
302 <td align="center" nowrap class="title"><b>Giá cũ </b></td>
303 <td align="center" nowrap class="title"><b>BH </b></td>
304 <td align="center" nowrap class="title"><b>Event </b></td>
305
306 <td align="center" nowrap class="title"><b>Up đề cử </b></td>
307 <td align="center" nowrap class="title"><b>Up TOP</b></td>
308 <td align="center" nowrap class="title"><b>Shop</b></td>
309
310
311
312 <td align="center" nowrap class="title"><b>Danh mục hệ thống</b></td>
313 <td align="center" nowrap class="title"><b>TT</b></td>
314 <td align="center" nowrap class="title"><b>Trạng thái</b></td>
315 <td align="center" nowrap class="title"><b>Ngày đăng</b></td>
316
317 </tr>
318
319 <?php
320 $sql="select * from products where $where order by id DESC limit ".($p*$MAXPAGE).",".$MAXPAGE;
321 $result=mysql_query($sql,$con);
322 $i=0;
323 while(($row=mysql_fetch_array($result)))
324 {
325 $i++;
326 if ($i%2) $color="#d5d5d5"; else $color="#e5e5e5";
327
328 $cat_system=GetCatInfo($row['cat']);
329
330 $sql_reg1=mysql_query("SELECT * FROM user_shop where user='".$row['user']."' ");
331 $row_reg1=mysql_fetch_assoc($sql_reg1);
332 $sql_city=mysql_query("SELECT * FROM city where id='".$row['city']."' ");
333 $row_city=mysql_fetch_assoc($sql_city);
334 ?>
335
336 <tr bgcolor="<? echo $color;?>" class="table_a">
337 <td align="center" class="smallfont">
338 <input type="checkbox" name="chk[]" value="<? echo $row['id']; ?>"></td>
339 <td class="smallfont"><a id="xemnhanhsp" href="/index1.php?home=products&views=<? echo $row['id']; ?>"> <image src="<? echo $row['image']; ?>" width="25" height="25" > </a></td>
340 <td align="center" class="smallfont">
341 <a href="./?act=product_m&cat=<? echo $_REQUEST['cat']; ?>&status=<? echo $_REQUEST['status']; ?>&id=<? echo $row['id']; ?>&page=<? echo $page?>">Sửa</a></td>
342
343
344
345 <td align="left" align="left" class="smallfont"><? echo $row['id']; ?> </td>
346 <td class="smallfont"><? echo $row['code']; ?> </td>
347 <td class="smallfont">
348 <a id="xemnhanhsp" href="/index1.php?home=products&views=<? echo $row['id']; ?>" ><? echo $row['name']; ?></a> <?php if($row['mausac_nau']=='' & $row['mausac_vang']=='' & $row['mausac_trang']==''& $row['mausac_den']==''& $row['mausac_hong']==''& $row['mausac_xanhla']==''& $row['mausac_xanhnuocbien']==''& $row['mausac_xanhngoc']==''& $row['mausac_xanhden']==''& $row['mausac_xam']==''& $row['mausac_tim']==''& $row['mausac_do']==''& $row['mausac_cam']==''& $row['mausac_kem']==''& $row['mausac_xanhduong']==''& $row['mausac_soc']==''& $row['mausac_xanhladam']==''& $row['mausac_hoatiet']==''& $row['mausac_bac']==''& $row['mausac_hongphan']=='')
349 {?>
350 <?}
351 else{?>
352
353 <?php if($row['mausac_nau']=='' )
354 {?>
355 <?}
356 else{?>
357 <span style="background-color: #<? echo $row['mausac_nau']; ?>; outline: 1px solid #ccc;" title="Nâu"><a href="java:" > </a></span>
358
359 <?}?>
360 <?php if($row['mausac_vang']=='' )
361 {?>
362 <?}
363 else{?>
364 <span style="background-color: #<? echo $row['mausac_vang']; ?>; outline: 1px solid #ccc;" title="Vàng"><a href="java:" > </a></span>
365
366 <?}?>
367 <?php if($row['mausac_trang']=='' )
368 {?>
369 <?}
370 else{?>
371 <span style="background-color: #<? echo $row['mausac_trang']; ?>; outline: 1px solid #ccc;" title="Trắng"><a href="java:" > </a></span>
372
373 <?}?>
374 <?php if($row['mausac_den']=='' )
375 {?>
376 <?}
377 else{?>
378 <span style="background-color: #<? echo $row['mausac_den']; ?>; outline: 1px solid #ccc;" title="Đen"><a href="java:" > </a></span>
379
380 <?}?>
381 <?php if($row['mausac_hong']=='' )
382 {?>
383 <?}
384 else{?>
385 <span style="background-color: #<? echo $row['mausac_hong']; ?>; outline: 1px solid #ccc;" title="Hồng"><a href="java:" > </a></span>
386
387 <?}?>
388 <?php if($row['mausac_xanhla']=='' )
389 {?>
390 <?}
391 else{?>
392 <span style="background-color: #<? echo $row['mausac_xanhla']; ?>; outline: 1px solid #ccc;" title="Xanh lá"><a href="java:" > </a></span>
393
394 <?}?>
395 <?php if($row['mausac_xanhnuocbien']=='' )
396 {?>
397 <?}
398 else{?>
399 <span style="background-color: #<? echo $row['mausac_xanhnuocbien']; ?>; outline: 1px solid #ccc;" title="Xanh nước biển"><a href="java:" > </a></span>
400
401 <?}?>
402 <?php if($row['mausac_xanhngoc']=='' )
403 {?>
404 <?}
405 else{?>
406
407 <span style="background-color: #<? echo $row['mausac_xanhngoc']; ?>; outline: 1px solid #ccc;" title="Xanh ngọc"><a href="java:" > </a></span>
408
409 <?}?>
410 <?php if($row['mausac_xanhden']=='' )
411 {?>
412 <?}
413 else{?>
414
415 <span style="background-color: #<? echo $row['mausac_xanhden']; ?>; outline: 1px solid #ccc;" title="Xanh đen"><a href="java:" > </a></span>
416
417 <?}?>
418 <?php if($row['mausac_xam']=='' )
419 {?>
420 <?}
421 else{?>
422
423 <span style="background-color: #<? echo $row['mausac_xam']; ?>; outline: 1px solid #ccc;" title="Xám"><a href="java:" > </a></span>
424
425 <?}?>
426 <?php if($row['mausac_tim']=='' )
427 {?>
428 <?}
429 else{?>
430 <span style="background-color: #<? echo $row['mausac_tim']; ?>; outline: 1px solid #ccc;" title="Tím"><a href="java:" > </a></span>
431
432 <?}?>
433 <?php if($row['mausac_do']=='' )
434 {?>
435 <?}
436 else{?>
437 <span style="background-color: #<? echo $row['mausac_do']; ?>;outline: 1px solid #ccc;" title="Đỏ"><a href="java:" > </a></span>
438
439 <?}?>
440 <?php if($row['mausac_cam']=='' )
441 {?>
442 <?}
443 else{?>
444 <span style="background-color: #<? echo $row['mausac_cam']; ?>;outline: 1px solid #ccc;" title="Cam"><a href="java:" > </a></span>
445
446 <?}?>
447 <?php if($row['mausac_kem']=='' )
448 {?>
449 <?}
450 else{?>
451 <span style="background-color: #<? echo $row['mausac_kem']; ?>;outline: 1px solid #ccc;" title="Kem"><a href="java:" > </a></span>
452
453 <?}?>
454
455 <?php if($row['mausac_xanhduong']=='' )
456 {?>
457 <?}
458 else{?>
459 <span style="background-color: #<? echo $row['mausac_xanhduong']; ?>;outline: 1px solid #ccc;" title="Xanh dương"><a href="java:" > </a></span>
460
461 <?}?>
462 <?php if($row['mausac_soc']=='' )
463 {?>
464 <?}
465 else{?>
466 <span style="background: url(/images/<? echo $row['mausac_soc']; ?>) center center no-repeat; ?>;outline: 1px solid #ccc;" title="Sọc"><a href="java:" > </a></span>
467
468 <?}?>
469 <?php if($row['mausac_xanhreu']=='' )
470 {?>
471 <?}
472 else{?>
473 <span style="background-color: #<? echo $row['mausac_xanhreu']; ?>;outline: 1px solid #ccc;" title="Xanh rêu"><a href="java:" > </a></span>
474
475 <?}?>
476 <?php if($row['mausac_xanhladam']=='' )
477 {?>
478 <?}
479 else{?>
480 <span style="background-color: #<? echo $row['mausac_xanhladam']; ?>;outline: 1px solid #ccc;" title="Xanh lá đậm"><a href="java:" > </a></span>
481
482 <?}?>
483 <?php if($row['mausac_hoatiet']=='' )
484 {?>
485 <?}
486 else{?>
487 <span style="background: url(/images/<? echo $row['mausac_hoatiet']; ?>) center center no-repeat;outline: 1px solid #ccc;" title="Họa tiết"><a href="java:" > </a></span>
488
489 <?}?>
490 <?php if($row['mausac_bac']=='' )
491 {?>
492 <?}
493 else{?>
494 <span style="background-color: #<? echo $row['mausac_bac']; ?>;outline: 1px solid #ccc;" title="Bạc"><a href="java:" > </a></span>
495
496 <?}?>
497 <?php if($row['mausac_hongphan']=='' )
498 {?>
499 <?}
500 else{?>
501 <span style="background-color: #<? echo $row['mausac_hongphan']; ?>;outline: 1px solid #ccc;" title="Hồng phấn"><a href="java:" > </a></span>
502
503 <?}?>
504 <?php if($row['kichthuoc_freesize']=='' & $row['kichthuoc_1']=='' & $row['kichthuoc_2']=='' & $row['kichthuoc_3']=='' & $row['kichthuoc_4']=='' & $row['kichthuoc_5']=='' & $row['kichthuoc_6']=='' & $row['kichthuoc_7']=='' & $row['kichthuoc_8']=='' & $row['kichthuoc_9']=='' & $row['kichthuoc_10']=='' & $row['kichthuoc_11']=='' & $row['kichthuoc_12']=='' & $row['kichthuoc_S']=='' & $row['kichthuoc_M']=='' & $row['kichthuoc_L']=='' & $row['kichthuoc_XL']=='' & $row['kichthuoc_XXL']=='' & $row['kichthuoc_XS']=='' & $row['kichthuoc_XXS']=='' & $row['kichthuoc_2XL']=='' & $row['kichthuoc_3XL']=='' & $row['kichthuoc_4XL']=='' & $row['kichthuoc_5XL']=='' & $row['kichthuoc_6XL']=='' & $row['kichthuoc_25']=='' & $row['kichthuoc_26']=='' & $row['kichthuoc_27']=='' & $row['kichthuoc_28']=='' & $row['kichthuoc_29']=='' & $row['kichthuoc_30']=='' & $row['kichthuoc_31']=='' & $row['kichthuoc_32']=='' & $row['kichthuoc_33']=='' & $row['kichthuoc_34']=='' & $row['kichthuoc_35']=='' & $row['kichthuoc_36']=='' & $row['kichthuoc_37']=='' & $row['kichthuoc_38']=='' & $row['kichthuoc_39']=='' & $row['kichthuoc_40']=='' & $row['kichthuoc_41']=='' & $row['kichthuoc_42']=='' & $row['kichthuoc_43']=='' & $row['kichthuoc_44']=='' & $row['kichthuoc_45']=='' & $row['kichthuoc_46']=='' & $row['kichthuoc_47']=='')
505 {?>
506 <?}
507 else{?>
508
509
510
511
512 <?php if($row['kichthuoc_freesize']=='' )
513 {?>
514 <?}
515 else{?>
516 <span style="/* outline: 1px solid #ccc; */width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;/* display: block; *//* float: left; */cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="FreeSize"><? echo $row['kichthuoc_freesize']; ?></span>
517
518 <?}?>
519
520 <?php if($row['kichthuoc_1']=='' )
521 {?>
522 <?}
523 else{?>
524 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-1"><? echo $row['kichthuoc_1']; ?></span>
525 <?}?>
526
527 <?php if($row['kichthuoc_2']=='' )
528 {?>
529 <?}
530 else{?>
531 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-2"><? echo $row['kichthuoc_2']; ?></span>
532 <?}?>
533 <?php if($row['kichthuoc_3']=='' )
534 {?>
535 <?}
536 else{?>
537 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-3"><? echo $row['kichthuoc_3']; ?></span>
538 <?}?>
539 <?php if($row['kichthuoc_4']=='' )
540 {?>
541 <?}
542 else{?>
543 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-4"><? echo $row['kichthuoc_4']; ?></span>
544 <?}?>
545 <?php if($row['kichthuoc_5']=='' )
546 {?>
547 <?}
548 else{?>
549 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-5"><? echo $row['kichthuoc_5']; ?></span>
550 <?}?>
551 <?php if($row['kichthuoc_6']=='' )
552 {?>
553 <?}
554 else{?>
555 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding-left: 4px;padding-right: 4px;" title="Size-6"><? echo $row['kichthuoc_6']; ?></span>
556 <?}?>
557 <?php if($row['kichthuoc_7']=='' )
558 {?>
559 <?}
560 else{?>
561 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-7"><? echo $row['kichthuoc_7']; ?></span>
562 <?}?>
563 <?php if($row['kichthuoc_8']=='' )
564 {?>
565 <?}
566 else{?>
567 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-8"><? echo $row['kichthuoc_8']; ?></span>
568 <?}?>
569 <?php if($row['kichthuoc_9']=='' )
570 {?>
571 <?}
572 else{?>
573 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-9"><? echo $row['kichthuoc_9']; ?></span>
574 <?}?>
575 <?php if($row['kichthuoc_10']=='' )
576 {?>
577 <?}
578 else{?>
579 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-10"><? echo $row['kichthuoc_10']; ?></span>
580 <?}?>
581 <?php if($row['kichthuoc_11']=='' )
582 {?>
583 <?}
584 else{?>
585 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-11"><? echo $row['kichthuoc_11']; ?></span>
586 <?}?>
587 <?php if($row['kichthuoc_12']=='' )
588 {?>
589 <?}
590 else{?>
591 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-12"><? echo $row['kichthuoc_12']; ?></span>
592 <?}?>
593 <?php if($row['kichthuoc_S']=='' )
594 {?>
595 <?}
596 else{?>
597 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-S"><? echo $row['kichthuoc_S']; ?></span>
598 <?}?>
599 <?php if($row['kichthuoc_M']=='' )
600 {?>
601 <?}
602 else{?>
603 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-M"><? echo $row['kichthuoc_M']; ?></span>
604 <?}?>
605 <?php if($row['kichthuoc_L']=='' )
606 {?>
607 <?}
608 else{?>
609 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-L"><? echo $row['kichthuoc_L']; ?></span>
610 <?}?>
611 <?php if($row['kichthuoc_XL']=='' )
612 {?>
613 <?}
614 else{?>
615 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XL"><? echo $row['kichthuoc_XL']; ?></span>
616 <?}?>
617 <?php if($row['kichthuoc_XXL']=='' )
618 {?>
619 <?}
620 else{?>
621 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XXL"><? echo $row['kichthuoc_XXL']; ?></span>
622 <?}?>
623 <?php if($row['kichthuoc_XS']=='' )
624 {?>
625 <?}
626 else{?>
627 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XS"><? echo $row['kichthuoc_XS']; ?></span>
628 <?}?>
629 <?php if($row['kichthuoc_XXS']=='' )
630 {?>
631 <?}
632 else{?>
633 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-XXS"><? echo $row['kichthuoc_XXS']; ?></span>
634 <?}?>
635 <?php if($row['kichthuoc_2XL']=='' )
636 {?>
637 <?}
638 else{?>
639 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-2XL"><? echo $row['kichthuoc_2XL']; ?></span>
640 <?}?>
641 <?php if($row['kichthuoc_3XL']=='' )
642 {?>
643 <?}
644 else{?>
645 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-3XL"><? echo $row['kichthuoc_3XL']; ?></span>
646 <?}?>
647 <?php if($row['kichthuoc_4XL']=='' )
648 {?>
649 <?}
650 else{?>
651 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-4XL"><? echo $row['kichthuoc_4XL']; ?></span>
652 <?}?>
653 <?php if($row['kichthuoc_5XL']=='' )
654 {?>
655 <?}
656 else{?>
657 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-5XL"><? echo $row['kichthuoc_5XL']; ?></span>
658 <?}?>
659 <?php if($row['kichthuoc_6XL']=='' )
660 {?>
661 <?}
662 else{?>
663 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-6XL"><? echo $row['kichthuoc_6XL']; ?></span>
664 <?}?>
665 <?php if($row['kichthuoc_25']=='' )
666 {?>
667 <?}
668 else{?>
669 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-25"><? echo $row['kichthuoc_25']; ?></span>
670 <?}?>
671 <?php if($row['kichthuoc_26']=='' )
672 {?>
673 <?}
674 else{?>
675 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-26"><? echo $row['kichthuoc_26']; ?></span>
676 <?}?>
677 <?php if($row['kichthuoc_27']=='' )
678 {?>
679 <?}
680 else{?>
681 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-27"><? echo $row['kichthuoc_27']; ?></span>
682 <?}?>
683 <?php if($row['kichthuoc_28']=='' )
684 {?>
685 <?}
686 else{?>
687 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-28"><? echo $row['kichthuoc_28']; ?></span>
688 <?}?>
689 <?php if($row['kichthuoc_29']=='' )
690 {?>
691 <?}
692 else{?>
693 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-29"><? echo $row['kichthuoc_29']; ?></span>
694 <?}?>
695 <?php if($row['kichthuoc_30']=='' )
696 {?>
697 <?}
698 else{?>
699 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-30"><? echo $row['kichthuoc_30']; ?></span>
700 <?}?>
701 <?php if($row['kichthuoc_31']=='' )
702 {?>
703 <?}
704 else{?>
705 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-31"><? echo $row['kichthuoc_31']; ?></span>
706 <?}?>
707 <?php if($row['kichthuoc_32']=='' )
708 {?>
709 <?}
710 else{?>
711 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-32"><? echo $row['kichthuoc_32']; ?></span>
712 <?}?>
713 <?php if($row['kichthuoc_33']=='' )
714 {?>
715 <?}
716 else{?>
717 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-33"><? echo $row['kichthuoc_33']; ?></span>
718 <?}?>
719 <?php if($row['kichthuoc_34']=='' )
720 {?>
721 <?}
722 else{?>
723 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-34"><? echo $row['kichthuoc_34']; ?></span>
724 <?}?>
725 <?php if($row['kichthuoc_35']=='' )
726 {?>
727 <?}
728 else{?>
729 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-35"><? echo $row['kichthuoc_35']; ?></span>
730 <?}?>
731 <?php if($row['kichthuoc_36']=='' )
732 {?>
733 <?}
734 else{?>
735 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-36"><? echo $row['kichthuoc_36']; ?></span>
736 <?}?>
737 <?php if($row['kichthuoc_37']=='' )
738 {?>
739 <?}
740 else{?>
741 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-37"><? echo $row['kichthuoc_37']; ?></span>
742 <?}?>
743 <?php if($row['kichthuoc_38']=='' )
744 {?>
745 <?}
746 else{?>
747 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-38"><? echo $row['kichthuoc_38']; ?></span>
748 <?}?>
749 <?php if($row['kichthuoc_39']=='' )
750 {?>
751 <?}
752 else{?>
753 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-39"><? echo $row['kichthuoc_39']; ?></span>
754 <?}?>
755 <?php if($row['kichthuoc_40']=='' )
756 {?>
757 <?}
758 else{?>
759 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-40"><? echo $row['kichthuoc_40']; ?></span>
760 <?}?>
761 <?php if($row['kichthuoc_41']=='' )
762 {?>
763 <?}
764 else{?>
765 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-41"><? echo $row['kichthuoc_41']; ?></span>
766 <?}?><?php if($row['kichthuoc_42']=='' )
767 {?>
768 <?}
769 else{?>
770 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-42"><? echo $row['kichthuoc_42']; ?></span>
771 <?}?>
772 <?php if($row['kichthuoc_43']=='' )
773 {?>
774 <?}
775 else{?>
776 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-43"><? echo $row['kichthuoc_43']; ?></span>
777 <?}?>
778 <?php if($row['kichthuoc_44']=='' )
779 {?>
780 <?}
781 else{?>
782 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-44"><? echo $row['kichthuoc_44']; ?></span>
783 <?}?>
784 <?php if($row['kichthuoc_45']=='' )
785 {?>
786 <?}
787 else{?>
788 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-45"><? echo $row['kichthuoc_45']; ?></span>
789 <?}?>
790 <?php if($row['kichthuoc_46']=='' )
791 {?>
792 <?}
793 else{?>
794 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-46"><? echo $row['kichthuoc_46']; ?></span>
795 <?}?>
796 <?php if($row['kichthuoc_47']=='' )
797 {?>
798 <?}
799 else{?>
800 <span style="width: auto;border: 1px solid #ccc;background: #F2F2F2;text-align: center;cursor: pointer;position: relative;font-size: 13px;margin-right: 10px;margin-bottom: 5px;padding: 0px;padding-left: 4px;padding-right: 4px;" title="Size-47"><? echo $row['kichthuoc_47']; ?></span>
801 <?}?>
802
803
804 <?}?>
805
806
807 <?}?></td>
808 <td class="smallfont"><? echo number_format($row['price_special']); ?> </td>
809 <td class="smallfont"><? echo number_format($row['price']); ?> </td>
810 <td class="smallfont"><? echo number_format($row['baohanh']); ?> </td>
811 <td class="smallfont">
812 <a onmouseover='showtip("<div><table style=\"padding:10px;background-color:black;color:white\"><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Nổi bật: </td><td style=\"width:400px\"><?php if($row['noibat'] == '1'){?> <img src=\"/images/icon-check.png\" /><?}else{?><img src=\"/images/icon-uncheck.png\" /><?}?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Top xu hướng: </td><td style=\"width:400px\"><?php if($row['topxuhuong'] > '0'){?> <img src=\"/images/icon-check.png\" /><?}else{?><img src=\"/images/icon-uncheck.png\" /><?}?></td></tr><tr><td style=\"padding-right:10px;width:120px;height:20px;text-align:right\">Top khuyến mãi: </td><td style=\"width:400px\"><?php if($row['topkhuyenmai'] > '0'){?> <img src=\"/images/icon-check.png\" /><?}else{?><img src=\"/images/icon-uncheck.png\" /><?}?></td></tr></table></div>");' onmouseout="hidetip();" >
813 <font color="red">Xem</b></font>
814 </a>
815
816 </td>
817
818 <td class="smallfont"><? echo number_format($row['upxuhuong']); ?> </td>
819 <td class="smallfont"><? echo number_format($row['uptop']); ?> </td>
820
821 <td class="smallfont">
822
823 <a onmouseover='showtip("<div><table style=\"padding:10px;background-color:black;color:white\"><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">ID Shop: </td><td style=\"width:400px\"><? echo $row_reg1['id'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Tên Shop: </td><td style=\"width:400px\"><? echo $row_reg1['company'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Loại Shop: </td><td style=\"width:400px\"><?php if($row_reg1['level_shop'] == '0'){?><b style=\"color:red\">Shop Lửa Đỏ </b><?}else{?>Shop Thường<?}?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Tỉnh/TP: </td><td style=\"width:400px\"><? echo $row_city['name'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Tình trạng: </td><td style=\"width:400px\"><?php if($row_reg1['active'] == '0'){?><b style=\"color:blue\">Kích hoạt </b><?}else{?>Bị Khóa<?}?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Email: </td><td><? echo $row_reg1['email'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Điện thoại: </td><td><? echo $row_reg1['phone'];?></td></tr><tr><td style=\"padding-right:10px;width:110px;height:20px;text-align:right\">Ngày đăng ký: </td><td><? echo $row_reg1['re_time'];?></td></tr><tr><td style=\"padding-right:10px;width:100px;height:20px;text-align:right\">Địa chỉ: </td><td><? echo $row['address'];?></td></tr></table></div>");' onmouseout="hidetip();" href="../<? echo $row['user']; ?>" target="_blank">
824 <font color="blue"><? echo $row['user']; ?></b></font>
825 </a>
826
827
828
829 </td>
830
831 <td class="smallfont"><? echo $cat_system['name']; ?> </td>
832 <td class="smallfont">
833
834
835 <?php if($row['tinhtrang'] == '1'){?>
836 Còn
837 <?}else{?>
838 Hết
839 <?}?>
840
841 </td>
842 <td class="smallfont">
843
844
845 <?php if($row['status'] == '0'){?>
846 Đã duyệt
847 <?}else{?>
848 Hủy
849 <?}?>
850
851 </td>
852 <td class="smallfont"><? echo $row['date']; ?> </td>
853
854 </tr>
855 <?
856 }
857 ?>
858 </table>
859
860
861
862 <input type="hidden" name="act" value="product"><table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
863 <tr>
864 <td>
865 <input type="submit" value="Xóa Chọn" name="ButDel" onclick="return confirm('Bạn có chắc chắn muốn xoá ?');" class="button"></td>
866 <td align="right">
867
868 </td>
869 <td align="right">
870
871 </td>
872
873
874 </tr>
875 </table>
876 </form>
877 <script language="JavaScript">
878 function chkallClick(o) {
879 var form = document.frmList;
880 for (var i = 0; i < form.elements.length; i++) {
881 if (form.elements[i].type == "checkbox" && form.elements[i].name!="chkall") {
882 form.elements[i].checked = document.frmList.chkall.checked;
883 }
884 }
885 }
886 </script>